From 996723ddc0fd0f3c95bce456166d80e2c465ca36 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 26 Apr 2003 23:43:36 +0000 Subject: [PATCH] Dont' null deref notes. --- csv_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csv_util.c b/csv_util.c index 84c00348b..f9ef04814 100644 --- a/csv_util.c +++ b/csv_util.c @@ -653,7 +653,7 @@ xcsv_waypt_pr(const waypoint *wpt) sprintf(buff, fmp->printfc, description); } else if (strcmp(fmp->key, "NOTES") == 0) { - sprintf(buff, fmp->printfc, wpt->notes); + sprintf(buff, fmp->printfc, wpt->notes? wpt->notes : ""); } else if (strcmp(fmp->key, "URL") == 0) { int off = 0; -- 2.30.2